]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Add menu item without action to gapplication
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 27 Feb 2015 14:01:04 +0000 (15:01 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 27 Feb 2015 14:02:27 +0000 (15:02 +0100)
Menu items with missing actions are expected to be visible but
insensitive - add a test case for this.

tests/interactive/gapplication.js

index 56b2ba10cd246fb908d913b546b672b0e2bd4fc4..91b544d9e84059b6ca09b0a10142e2dc98de6bda 100755 (executable)
@@ -70,6 +70,7 @@ function main() {
     section = new Gio.Menu();
     section.append('Checkbox', 'app.toggle');
     section.append('Disabled', 'app.disable');
+    section.append('Missing Action', 'app.no-action');
     menu.append_section('Subsection', section);
 
     // empty sections or submenus should be invisible